using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Features
{
    /// <summary>
    /// <para>Feature To Point</para>
    /// <para>Creates a feature class containing points generated from the representative locations of input features.</para>
    /// <para>创建一个要素类，其中包含从输入要素的代表性位置生成的点。</para>
    /// </summary>    
    [DisplayName("Feature To Point")]
    public class FeatureToPoint : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public FeatureToPoint()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>The input features that can be multipoint, line, polygon, or annotation.</para>
        /// <para>输入要素可以是多点、线、面或注记。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The output point feature class.</para>
        /// <para>输出点要素类。</para>
        /// </param>
        public FeatureToPoint(object _in_features, object _out_feature_class)
        {
            this._in_features = _in_features;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Feature To Point";

        public override string CallName => "management.FeatureToPoint";

        public override List<string> AcceptEnvironments => ["MDomain", "MResolution", "MTolerance", "XYResolution", "XYTolerance", "ZDomain", "ZResolution", "ZTolerance", "extent", "outputCoordinateSystem", "outputMFlag", "outputZFlag", "outputZValue", "scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_features, _out_feature_class, _point_location.GetGPValue()];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>The input features that can be multipoint, line, polygon, or annotation.</para>
        /// <para>输入要素可以是多点、线、面或注记。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The output point feature class.</para>
        /// <para>输出点要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Inside</para>
        /// <para><xdoc>
        ///   <para>Specifies whether to use representative centers of input features or locations contained by input features as the output point locations.
        ///   <bulletList>
        ///     <bullet_item>Unchecked—Uses the representative center of an input feature as its output point location. This location may not always be contained by the input feature. This is the default.  </bullet_item><para/>
        ///     <bullet_item>Checked—Uses a location contained by an input feature as its output point location.  </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para><xdoc>
        /// <para>指定是使用输入要素的代表性中心还是输入要素所包含的位置作为输出点位置。
        ///   <bulletList>
        ///     <bullet_item>未选中 - 使用输入要素的代表中心作为其输出点位置。输入要素可能并不总是包含此位置。这是默认设置。 </bullet_item><para/>
        ///     <bullet_item>选中 （Checked） - 使用输入要素包含的位置作为其输出点位置。</bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Inside")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _point_location_value _point_location { get; set; } = _point_location_value._false;

        public enum _point_location_value
        {
            /// <summary>
            /// <para>INSIDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("INSIDE")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>CENTROID</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("CENTROID")]
            [GPEnumValue("false")]
            _false,

        }

        public FeatureToPoint SetEnv(object MDomain = null, object MResolution = null, object MTolerance = null, object XYResolution = null, object XYTolerance = null, object ZDomain = null, object ZResolution = null, object ZTolerance = null, object extent = null, object outputCoordinateSystem = null, object outputMFlag = null, object outputZFlag = null, object outputZValue = null, object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(MDomain: MDomain, MResolution: MResolution, MTolerance: MTolerance, XYResolution: XYResolution, XYTolerance: XYTolerance, ZDomain: ZDomain, ZResolution: ZResolution, ZTolerance: ZTolerance, extent: extent, outputCoordinateSystem: outputCoordinateSystem, outputMFlag: outputMFlag, outputZFlag: outputZFlag, outputZValue: outputZValue, scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}